home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Source Code
/
C
/
Frameworks
/
TransSkel 3.24
/
Source
/
SkelWindTitleHt.c
< prev
next >
Wrap
Text File
|
1996-01-17
|
505b
|
21 lines
/*
* Determine height of a window's title bar. This is determined as the
* difference between the top of the window's structure and content rects.
*
* This function will not necessarily work for windows with strange shapes
* or that have a title bar on the side.
*/
# include "TransSkel.h"
pascal short
SkelGetWindTitleHeight (WindowPtr w)
{
Rect content;
Rect structure;
SkelGetWindContentRect (w, &content);
SkelGetWindStructureRect (w, &structure);
return (content.top - structure.top);
}